
// this的类型不明确的时候
type ThisType1 = { name: string}

function eating(this: ThisType1, message: string) {
    console.log(this.name + 'eating');
    
}

const info = {
    name: 'wn',
    eating: eating
}

info.eating('123')